projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1edffde
)
(posn-object-x-y): New defun.
author
Kim F. Storm
<storm@cua.dk>
Thu, 27 Nov 2003 21:28:01 +0000
(21:28 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Thu, 27 Nov 2003 21:28:01 +0000
(21:28 +0000)
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 9dc6c2ba6eccb6b9dd9ddb5ffd392608da84806b..dba7331f98c210244f0d0434a7e3d9acf1223d24 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-757,6
+757,12
@@
POSITION should be a list of the form returned by the `event-start'
and `event-end' functions."
(nth 4 position))
+(defsubst posn-object-x-y (position)
+ "Return the x and y coordinates relative to the object of POSITION.
+POSITION should be a list of the form returned by the `event-start'
+and `event-end' functions."
+ (nth 7 position))
+
\f
;;;; Obsolescent names for functions.